<?php /* Smarty version 2.6.26, created on 2010-11-06 11:29:42
         compiled from includes/languages.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
//smarty_core_load_plugins(array('plugins' => array(array('function', 'cycle', 'includes/languages.tpl', 26, false),array('modifier', 'cat', 'includes/languages.tpl', 59, false),)), $this); ?>
        <?php ob_start(); ?>
            <tr><td class = "moduleCell">
                <?php ob_start(); ?>
                 <script>var activate = '<?php echo @_ACTIVATE; ?>
';var deactivate = '<?php echo @_DEACTIVATE; ?>
';</script>
                    <?php if (! isset ( $this->_tpl_vars['T_CURRENT_USER']->coreAccess['configuration'] ) || $this->_tpl_vars['T_CURRENT_USER']->coreAccess['configuration'] == 'change'): ?>
                        <div class = "headerTools">
                            <span>
                                <img src = "images/16x16/add.png" alt = "<?php echo @_ADDLANGUAGE; ?>
" title = "<?php echo @_ADDLANGUAGE; ?>
">
                                <a href = "javascript:void(0)" title = "<?php echo @_ADDLANGUAGE; ?>
" onclick = "eF_js_showDivPopup('<?php echo @_ADDLANGUAGE; ?>
', 0, 'language_table');$('language_name').value = '';$('language_translation').value = '';$('selected_language').value = '';$('language_rtl').checked = '';"><?php echo @_ADDLANGUAGE; ?>
</a>
                            </span>
                        </div>

                        <?php $this->assign('change_languages', '1'); ?>
                    <?php endif; ?>
<!--ajax:languagesTable-->
                        <table style = "width:100%" class = "sortedTable" size = "<?php echo $this->_tpl_vars['T_TABLE_SIZE']; ?>
" sortBy = "2" id = "languagesTable" useAjax = "1" rowsPerPage = "<?php echo @G_DEFAULT_TABLE_SIZE; ?>
" url = "<?php echo $_SERVER['PHP_SELF']; ?>
?ctg=languages&">
                            <tr class = "defaultRowHeight">
                                <td class = "topTitle" name = "name"><?php echo @_CURRENTLANGUAGES; ?>
</td>
                                <td class = "topTitle" name = "translation"><?php echo @_TRANSLATION; ?>
</td>
                                <td class = "topTitle centerAlign" name = "active"><?php echo @_STATUS; ?>
</td>
                    <?php if ($this->_tpl_vars['change_languages']): ?>
                               <td class = "topTitle centerAlign noSort"><?php echo @_OPERATIONS; ?>
</td>
                    <?php endif; ?>
                            </tr>
                    <?php $_from = $this->_tpl_vars['T_DATA_SOURCE']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['language_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['language_list']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['name'] => $this->_tpl_vars['language']):
        $this->_foreach['language_list']['iteration']++;
?>
                            <tr id="row_<?php echo $this->_tpl_vars['language']['name']; ?>
" class = "<?php echo smarty_function_cycle(array('name' => 'languages','values' => "oddRowColor, evenRowColor"), $this);?>
 <?php if (! $this->_tpl_vars['language']['active']): ?>deactivatedTableElement<?php endif; ?>">
                                <td><?php echo $this->_tpl_vars['language']['name']; ?>
</td>
                                <td><?php echo $this->_tpl_vars['language']['translation']; ?>
</td>
                                <td class = "centerAlign"><span style = "display:none"><?php echo $this->_tpl_vars['language']['active']; ?>
</span>
                                    <?php if ($this->_tpl_vars['language']['active']): ?>
                                        <img class = "ajaxHandle" src = "images/16x16/trafficlight_green.png" alt = "<?php echo @_DEACTIVATE; ?>
" title = "<?php echo @_DEACTIVATE; ?>
" <?php if ($this->_tpl_vars['change_languages']): ?>onclick = "activateLanguage(this, '<?php echo $this->_tpl_vars['language']['name']; ?>
')"<?php endif; ?>>
                                    <?php else: ?>
                                        <img class = "ajaxHandle" src = "images/16x16/trafficlight_red.png" alt = "<?php echo @_ACTIVATE; ?>
" title = "<?php echo @_ACTIVATE; ?>
" <?php if ($this->_tpl_vars['change_languages']): ?>onclick = "activateLanguage(this, '<?php echo $this->_tpl_vars['language']['name']; ?>
')"<?php endif; ?>>
                                    <?php endif; ?>
                                </td>
                    <?php if ($this->_tpl_vars['change_languages']): ?>
                                <td class = "centerAlign">
                                    <a href = "view_file.php?file=<?php echo $this->_tpl_vars['language']['file_path']; ?>
&action=download"><img src = "images/16x16/import.png" title = "<?php echo @_DOWNLOADLANGUAGEFILE; ?>
" alt = "<?php echo @_DOWNLOADLANGUAGEFILE; ?>
" /></a>
                        <?php if ($this->_tpl_vars['name'] != 'english'): ?>
                                    <img class = "ajaxHandle" src = "images/16x16/edit.png" title = "<?php echo @_EDIT; ?>
" alt = "<?php echo @_EDIT; ?>
" onclick = "eF_js_showDivPopup('<?php echo @_EDIT; ?>
', 0, 'language_table');$('language_name').value = '<?php echo $this->_tpl_vars['language']['name']; ?>
';$('language_translation').value = '<?php echo $this->_tpl_vars['language']['translation']; ?>
';$('selected_language').value = '<?php echo $this->_tpl_vars['language']['name']; ?>
';$('language_rtl').checked = <?php echo $this->_tpl_vars['language']['rtl']; ?>
;"/>
                                    <img class = "ajaxHandle" src = "images/16x16/error_delete.png" title = "<?php echo @_DELETE; ?>
" alt = "<?php echo @_DELETE; ?>
" onclick = "if (confirm ('<?php echo @_IRREVERSIBLEACTIONAREYOUSURE; ?>
')) deleteLanguage(this, '<?php echo $this->_tpl_vars['language']['name']; ?>
')"/>
                        <?php endif; ?>
                                </td>
                    <?php endif; ?>
                             </tr>
                    <?php endforeach; else: ?>
                            <tr class = "oddRowColor defaultRowHeight"><td class = "emptyCategory" colspan = "3"><?php echo @_NODATAFOUND; ?>
</td></tr>
                    <?php endif; unset($_from); ?>
                        </table>
<!--/ajax:languagesTable-->
                        <div id = "language_table" style = "display:none;">
      <?php ob_start(); ?>
                            <?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['javascript']; ?>

                            <form <?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['attributes']; ?>
>
                                <?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['hidden']; ?>

                                <table class = "formElements">
                                    <tr><td class = "labelCell"><?php echo @_ENGLISHNAME; ?>
:&nbsp;</td>
                                        <td class = "elementCell"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['english_name']['html']; ?>
</td></tr>
                                    <?php if ($this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['english_name']['error']): ?><tr><td></td><td class = "formError" colspan = "2"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['english_name']['error']; ?>
</td></tr><?php $this->assign('div_error', ((is_array($_tmp='upload_language_table')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_sections['form_list']['index']) : smarty_modifier_cat($_tmp, $this->_sections['form_list']['index']))); ?><?php endif; ?>
                                    <tr><td class = "labelCell"><?php echo @_TRANSLATION; ?>
:&nbsp;</td>
                                        <td class = "elementCell"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['translation']['html']; ?>
</td></tr>
                                    <?php if ($this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['translation']['error']): ?><tr><td></td><td class = "formError" colspan = "2"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['translation']['error']; ?>
</td></tr><?php $this->assign('div_error', ((is_array($_tmp='upload_language_table')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_sections['form_list']['index']) : smarty_modifier_cat($_tmp, $this->_sections['form_list']['index']))); ?><?php endif; ?>
                                    <tr><td class = "labelCell"><?php echo @_RTLLANGUAGE; ?>
:&nbsp;</td>
                                        <td class = "elementCell"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['rtl']['html']; ?>
</td></tr>
                                    <tr><td class = "labelCell"><?php echo @_FILENAME; ?>
:&nbsp;</td>
                                        <td class = "elementCell"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['language_upload']['html']; ?>
</td></tr>
                                    <tr><td></td>
                                        <td class = "infoCell"><?php echo @_EACHFILESIZEMUSTBESMALLERTHAN; ?>
 <b><?php echo $this->_tpl_vars['T_MAX_FILE_SIZE']; ?>
</b> <?php echo @_KB; ?>
</td></tr>
                                    <?php if ($this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['language_upload']['error']): ?><tr><td></td><td class = "formError" colspan = "2"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['language_upload']['error']; ?>
</td></tr><?php $this->assign('div_error', ((is_array($_tmp='upload_language_table')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_sections['form_list']['index']) : smarty_modifier_cat($_tmp, $this->_sections['form_list']['index']))); ?><?php endif; ?>
                                    <tr><td colspan = "2">&nbsp;</td></tr>
                                    <tr><td></td>
                                        <td class = "elementCell"><?php echo $this->_tpl_vars['T_CREATE_LANGUAGE_FORM']['submit_upload_language']['html']; ?>
</td></tr>
                                </table>
                            </form>
      <?php $this->_smarty_vars['capture']['language_code'] = ob_get_contents(); ob_end_clean(); ?>
                              </div>

                 <?php $this->_smarty_vars['capture']['languageAdmin'] = ob_get_contents(); ob_end_clean(); ?>

                            </td></tr>
        <?php $this->_smarty_vars['capture']['moduleLanguages'] = ob_get_contents(); ob_end_clean(); ?>